package top.v5it.japi.plus.support.idcenter.impl;

import cn.hutool.core.lang.Snowflake;
import top.v5it.japi.plus.support.idcenter.IdCenter;

/**
 * 雪花算法生成id
 *
 * @author zhanpu
 * @date 2021/3/14
 */
public class SnowflakeIdCenter extends Snowflake implements IdCenter {

    private static final long serialVersionUID = -1354318262808901766L;

    public SnowflakeIdCenter(long workerId, long dataCenterId) {
        super(workerId, dataCenterId);
    }

    @Override
    public long nextId() {
        return super.nextId();
    }

    @Override
    public long nextId(String key, int length) {
        return this.nextId();
    }

    @Override
    public String nextIdStr(String key, int length) {
        return super.nextIdStr();
    }

}
